package com.fbooks.utils.email;

import com.fbooks.bean.Email;
import com.fbooks.utils.email.Impl.AccountEmailException;

/**
 * @Author: LuoRunFeng
 * @e-mail: 475403147@qq.com
 * @Time: 2020/4/27 13:34
 * @Version 1.0
 */
public interface AccountEmailService {

    /**
     * 发送邮件
     * @param email
     * @throws AccountEmailException
     */
    void sendMail(Email email) throws AccountEmailException;
    void sendMailByAsynchronousMode(final Email email);
    String createCaptchaCode(String str, Integer length);
}
